#!/usr/bin/env php
<?php
/**
 * Leaps console bootstrap file.
 *
 * @author Tongle Xu <xutongle@gmail.com>
 * @copyright Copyright (c) 2003-2103 Jinan TintSoft development co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 */

defined('LEAPS_DEBUG') or define('LEAPS_DEBUG', true);

// fcgi doesn't have STDIN defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));

require(__DIR__ . '/protected/vendor/autoload.php');
require(__DIR__ . '/framework/leaps/src/Leaps/Leaps.php');
$config = require(__DIR__ . '/protected/config/console.php');

$application = new Leaps\Console\Application($config);
$exitCode = $application->run();
exit($exitCode);
